cmake_minimum_required(VERSION 3.16.1)
set(CMAKE_CXX_STANDARD 11)
project(together)
set(InferenceEngine_DIR /opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/share)
find_package(OpenCV REQUIRED)
message(${OpenCV_DIR})
message(${InferenceEngine_DIR})


find_package(InferenceEngine REQUIRED)
find_package(ngraph REQUIRED)

include_directories(
    ${OpenCV_INCLUDE_DIRS}
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
)


file(GLOB_RECURSE source
        ArmorDetectorT/*
        Nanodet/*
        ThreadManager/*
        IndustrialCamera/*
        )


add_executable(together main.cpp ${source} AngleSolver/AngleSolver.h AngleSolver/AngleSovler.cpp)

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} -lpthread -lm)
target_link_libraries(
    together
    ${InferenceEngine_LIBRARIES}
    ${NGRAPH_LIBRARIES}
    ${OpenCV_LIBS}
        /opt/MVS/lib/64/libFormatConversion.so
        /opt/MVS/lib/64/libMediaProcess.so
        /opt/MVS/lib/64/libMvCameraControl.so
        /opt/MVS/lib/64/libMVRender.so
        /opt/MVS/lib/64/libMvUsb3vTL.so
)

